package com.issac.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.util.Date;

public class Accessory {

  @TableId(value = "accessory_id")
  private String accessoryId;
  private String fruitId;
  private String accessoryName;
  private double price;
  @TableField(fill = FieldFill.INSERT)
  private Date createTime;

  public Accessory() {
  }

  public Accessory(String fruitId, String accessoryName, double price) {
    this.fruitId = fruitId;
    this.accessoryName = accessoryName;
    this.price = price;
  }

  public String getAccessoryId() {
    return accessoryId;
  }

  public void setAccessoryId(String accessoryId) {
    this.accessoryId = accessoryId;
  }


  public String getFruitId() {
    return fruitId;
  }

  public void setFruitId(String fruitId) {
    this.fruitId = fruitId;
  }


  public String getAccessoryName() {
    return accessoryName;
  }

  public void setAccessoryName(String accessoryName) {
    this.accessoryName = accessoryName;
  }


  public double getPrice() {
    return price;
  }

  public void setPrice(double price) {
    this.price = price;
  }

  public Date getCreateTime() {
    return createTime;
  }

  public void setCreateTime(Date createTime) {
    this.createTime = createTime;
  }
}
